<?php
require_once('config.php');
$id = $_GET['id'];
$stmt = $connect->prepare("DELETE FROM admin WHERE id=?");
$stmt->bind_param("i", $id);
$res = $stmt->execute();
if ($res) {
    echo "<script>alert('删除成功！'); location.href='password_update.php';</script>";
} else {
    echo "<script>alert('删除失败，请重新删除！'); location.href='password_update.php';</script>";
}
$stmt->close();
?>